package rsj.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import rsj.service.HttpService;

import javax.annotation.PostConstruct;

/**
 * @author yuanqinglong
 * @since 2021/5/13 16:34
 */
@Data
@Component
@ConfigurationProperties(prefix = "down")
public class DownLoadProperties {


    private String upDownLoadUrl;
    private String upDownAppId;
    private String upDownApi;


    @PostConstruct
    public void init() {
        HttpService.setDownLoadProperties(this);
    }

}
